package auth_center

type Admin struct {
	//管理员
	Id          int64  `gorm:"primary_Key;type:bigint(20) auto_increment;"`
	Username    string `gorm:"column:username;type:varchar(32);index:idx_username;uniqueIndex:idx_validate;comment:用户名" json:"username"`           //用户名
	Password    string `gorm:"column:password;type:varchar(64);default:'';index:idx_password;uniqueIndex:idx_validate;comment:密码" json:"password"` //密码
	Aid         int64  `gorm:"column:aid;type:bigint(20);index:idx_aid;comment:关联APP的自增ID" json:"aid"`                                             //应用自增ID
	Description string `gorm:"column:description;type:varchar(32);default:'';comment:描述" json:"description"`                                       //描述
	Status      int8   `gorm:"column:status;type:tinyInt(1);default:1;comment:状态1启用2禁用" json:"status"`                                             //状态，1启用2禁用
}
